<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>查询</title>
</head>
<body>
    <form action="/text/es_select" method="post">
        请输入elasticsearch 的 title或者sub_title:<br><input name="titleOrSubTitle"/>
        <br>
        <input type="submit" value="查询"/>
    </form>

    <div style="text-align: center">

        <table class="list" border="1">
            <tr>
                <th>id</th>
                <th>Title</th>
                <th>Sub-Title</th>
                <th>Price</th>
            </tr>

            <tr th:each="text : ${texts}">
                <td th:text="${text.id}"></td>
                <td th:text="${text.title}"></td>
                <td th:text="${text.subTitle}"></td>
                <td th:text="${text.price}"></td>
            </tr>

        </table>
    </div>

    <div>
        <form id="sysForm2" class="form-horizontal">
            <table>
                <div th:each="text : ${b}">
                    <div th:replace="base_input::base_input(${text.id},${text.title},${text.subTitle},${text.price})"></div>
                </div>
            </table>
        </form>
    </div>
</body>
</html>